package com.hu.zhcc.shiro.service.xsx;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.hu.zhcc.shiro.dao.xsx.TInterposeSchemeMapper;
import com.hu.zhcc.shiro.entity.xsx.XsxTInterposeScheme;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 干预方案表 服务实现类
 * </p>
 *
 * @author xsx
 * @since 2021-06-21
 */
@Service
public class TInterposeSchemeServiceImpl extends ServiceImpl<TInterposeSchemeMapper, XsxTInterposeScheme> implements TInterposeSchemeService {
    @Autowired
    TInterposeSchemeMapper tInterposeSchemeMapper;

    @Override
    public int addScheme(XsxTInterposeScheme tInterposeScheme) {
        return tInterposeSchemeMapper.addScheme(tInterposeScheme);
    }

    @Override
    public int updateStatue(int id) {
        return tInterposeSchemeMapper.updateStatue(id);
    }

    @Override
    public List<XsxTInterposeScheme> querySchemeByHyid(int id) {
        return tInterposeSchemeMapper.querySchemeByHyid(id);
    }
}
